/* ======================================================================================================= */
/* ArcGIS API for JavasScript: Calcite Theme - Icon Fonts */
/* (Added 2014-11-26 by FG) */
/* Note:
	- Based on font created using IconMoon
/* ======================================================================================================= */
$fontFamilyName = "CalciteWebCoreIcons";

$iconFontLookup = {
  esri-icon-close:"\e600",
  esri-icon-drag-horizontal:"\e601",
  esri-icon-drag-vertical:"\e602",
  esri-icon-handle-horizontal:"\e603",
  esri-icon-handle-vertical:"\e604",
  esri-icon-check-mark:"\e605",
  esri-icon-left-triangle-arrow:"\e606",
  esri-icon-right-triangle-arrow:"\e607",
  esri-icon-down-arrow:"\e608",
  esri-icon-up-arrow:"\e609",
  esri-icon-overview-arrow-bottom-left:"\e60a",
  esri-icon-overview-arrow-bottom-right:"\e60b",
  esri-icon-overview-arrow-top-left:"\e60c",
  esri-icon-overview-arrow-top-right:"\e60d",
  esri-icon-maximize:"\e60e",
  esri-icon-minimize:"\e60f",
  esri-icon-checkbox-unchecked:"\e610",
  esri-icon-checkbox-checked:"\e611",
  esri-icon-radio-unchecked:"\e612",
  esri-icon-radio-checked:"\e613",
  esri-icon-up-arrow-circled:"\e614",
  esri-icon-down-arrow-circled:"\e615",
  esri-icon-left-arrow-circled:"\e616",
  esri-icon-right-arrow-circled:"\e617",
  esri-icon-zoom-out-fixed:"\e618",
  esri-icon-zoom-in-fixed:"\e619",
  esri-icon-refresh:"\e61a",
  esri-icon-edit:"\e61b",
  esri-icon-authorize:"\e61c",
  esri-icon-map-pin:"\e61d",
  esri-icon-blank-map-pin:"\e61e",
  esri-icon-table:"\e61f",
  esri-icon-zoom-in:"\e620",
  esri-icon-zoom-out:"\e621",
  esri-icon-beginning:"\e622",
  esri-icon-reverse:"\e623",
  esri-icon-pause:"\e624",
  esri-icon-play:"\e625",
  esri-icon-forward:"\e626",
  esri-icon-end:"\e627",
  esri-icon-erase:"\e628",
  esri-icon-up-down-arrows:"\e629",
  esri-icon-left:"\e62a",
  esri-icon-right:"\e62b",
  esri-icon-announcement:"\e62c",
  esri-icon-notice-round:"\e62d",
  esri-icon-notice-triangle:"\e62e",
  esri-icon-home:"\e62f",
  esri-icon-locate:"\e630",
  esri-icon-expand:"\e631",
  esri-icon-collapse:"\e632",
  esri-icon-layer-list:"\e633",
  esri-icon-basemap:"\e634",
  esri-icon-globe:"\e635",
  esri-icon-applications:"\e636",
  esri-icon-arrow-up-circled:"\e637",
  esri-icon-arrow-down-circled:"\e638",
  esri-icon-arrow-left-circled:"\e639",
  esri-icon-arrow-right-circled:"\e63a",
  esri-icon-delete:"\e63b",
  esri-icon-add:"\e63c",
  esri-icon-add-attachment:"\e63d",
  esri-icon-attachment:"\e63e",
  esri-icon-calendar:"\e63f",
  esri-icon-close-circled:"\e640",
  esri-icon-browser:"\e641",
  esri-icon-collection:"\e642",
  esri-icon-comment:"\e643",
  esri-icon-configure-popup:"\e644",
  esri-icon-contact:"\e645",
  esri-icon-dashboard:"\e646",
  esri-icon-deny:"\e647",
  esri-icon-description:"\e648",
  esri-icon-directions:"\e649",
  esri-icon-directions2:"\e64a",
  esri-icon-documentation:"\e64b",
  esri-icon-duplicate:"\e64c",
  esri-icon-review:"\e64d",
  esri-icon-environment-settings:"\e64e",
  esri-icon-error:"\e64f",
  esri-icon-error2:"\e650",
  esri-icon-experimental:"\e651",
  esri-icon-feature-layer:"\e652",
  esri-icon-filter:"\e653",
  esri-icon-grant:"\e654",
  esri-icon-group:"\e655",
  esri-icon-key:"\e656",
  esri-icon-labels:"\e657",
  esri-icon-tag:"\e658",
  esri-icon-layers:"\e659",
  esri-icon-left-arrow:"\e65a",
  esri-icon-right-arrow:"\e65b",
  esri-icon-link-external:"\e65c",
  esri-icon-link:"\e65d",
  esri-icon-loading-indicator:"\e65e",
  esri-icon-maps:"\e65f",
  esri-icon-marketplace:"\e660",
  esri-icon-media:"\e661",
  esri-icon-media2:"\e662",
  esri-icon-menu:"\e663",
  esri-icon-mobile:"\e664",
  esri-icon-phone:"\e665",
  esri-icon-navigation:"\e666",
  esri-icon-pan:"\e667",
  esri-icon-printer:"\e668",
  esri-icon-pie-chart:"\e669",
  esri-icon-chart:"\e66a",
  esri-icon-line-chart:"\e66b",
  esri-icon-question:"\e66c",
  esri-icon-resend-invitation:"\e66d",
  esri-icon-rotate:"\e66e",
  esri-icon-save:"\e66f",
  esri-icon-settings:"\e670",
  esri-icon-settings2:"\e671",
  esri-icon-share:"\e672",
  esri-icon-sign-out:"\e673",
  esri-icon-support:"\e674",
  esri-icon-user:"\e675",
  esri-icon-time-clock:"\e676",
  esri-icon-trash:"\e677",
  esri-icon-upload:"\e678",
  esri-icon-download:"\e679",
  esri-icon-zoom-in-magnifying-glass:"\e67a",
  esri-icon-search:"\e67b",
  esri-icon-zoom-out-magnifying-glass:"\e67c",
  esri-icon-locked:"\e67d",
  esri-icon-unlocked:"\e67e",
  esri-icon-favorites:"\e67f"
}

/* Icon Function */
iconfont(args)
  font-family $fontFamilyName;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  content: $iconFontLookup[args]


/* Icon - Initial references to font files */
iconfont_init($path)
  $url_path = $path + 'icons/fonts/'
  $urlEot1  = $url_path + $fontFamilyName + '.eot?1nhw6q'
  $urlEot2  = $url_path + $fontFamilyName + '.eot?#iefix1nhw6q'
  $urlWoff  = $url_path + $fontFamilyName + '.woff?1nhw6q'
  $urlTtf   = $url_path + $fontFamilyName + '.ttf?1nhw6q'
  $urlSvg   = $url_path + $fontFamilyName + '.svg?1nhw6q#' + $fontFamilyName

  @font-face
    font-family: $fontFamilyName;
    src: url( $urlEot1 );
    src: url( $urlEot2 ) format('embedded-opentype'),
    url( $urlWoff ) format('woff'),
    url( $urlTtf ) format('truetype'),
    url( $urlSvg ) format('svg');
    font-weight: normal;
    font-style: normal;


/* Icon - CSS Classes */
iconfont_classes()
  [class^="esriIcon"], [class*=" esriIcon"]
    font-family: $fontFamilyName;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

  for className, contentCode in $iconFontLookup
    .{className}:before
      content: contentCode;

